package com.ruoyi.ora.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 资产权限对象 ora_assets_permission
 * 
 * @author liuwp
 * @date 2025-04-10
 */
public class AssetsPermission extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 权限类型 */
    @Excel(name = "权限类型", dictType = "ora_assets_type")
    private Integer assetsType;

    /** 数据id */
    @Excel(name = "数据id")
    private Long assetsId;

    /** 绑定用户id */
    @Excel(name = "绑定用户id")
    private Long deviceUserId;

    private Integer showType;

    private Long[] deviceUserIds;

    public Long[] getDeviceUserIds() {
        return deviceUserIds;
    }

    public void setDeviceUserIds(Long[] deviceUserIds) {
        this.deviceUserIds = deviceUserIds;
    }

    public Integer getShowType() {
        return showType;
    }

    public void setShowType(Integer showType) {
        this.showType = showType;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public Integer getAssetsType() {
        return assetsType;
    }

    public void setAssetsType(Integer assetsType) {
        this.assetsType = assetsType;
    }

    public void setAssetsId(Long assetsId)
    {
        this.assetsId = assetsId;
    }

    public Long getAssetsId() 
    {
        return assetsId;
    }
    public void setDeviceUserId(Long deviceUserId) 
    {
        this.deviceUserId = deviceUserId;
    }

    public Long getDeviceUserId() 
    {
        return deviceUserId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("showType", getShowType())
            .append("assetsId", getAssetsId())
            .append("deviceUserId", getDeviceUserId())
            .append("createTime", getCreateTime())
            .toString();
    }
}
